﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HSchSchedule.Utils;

namespace HSchSchedule.BackendPage
{
    public partial class ViewSchedulePage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if(!IsPostBack)
            {
                if (Session[GUIConstants.LOGIN_SESSION] == null)
                {
                    Session[GUIConstants.TARGET_URL] = Request.Url.ToString();
                    Response.Redirect("~/BackendPage/LoginPage.aspx");
                }

            }
        }
    }
}
